﻿#ifndef CHARGECARDMANAGEINFO_H
#define CHARGECARDMANAGEINFO_H

#include <QWidget>
#include "Global.h"
#include <QTimer>
#include <QLineEdit>
#include <QSqlQuery>

namespace Ui {
class ChargeCardManageInfo;
}

class ChargeCardManageInfo : public QWidget
{
    Q_OBJECT
    
public:
    QLabel* time;
    QLabel* signal;
    void ReadTcucarddb();
    admin_card mcard[5];
    explicit ChargeCardManageInfo(QWidget *parent = 0);
    ~ChargeCardManageInfo();
signals:
    void SwipingAdministrationCard(int Flag, QString A1, QString A2);
    void BindingCard(int SwipFlag_Bind, QLineEdit *edit, QString A1, QString A2);
    void UnBindingCard(int SwipFlag_UnBind, QString UnBinding_CardNum, QString A1, QString A2);

public slots:
    void SendManagementtoCardAndQRcord(QString *sendNumcardinfo);
    void AdministrationCard_Binded();
    void LabelShow(int flag);

private slots:

    void ButtonBind();
    void ButtonUnBind();
    void ButtonEnable(int current);

    void on_buttonBack_clicked();

private:
    Labeltree LabelTree[5];
    Ui::ChargeCardManageInfo *ui;
};

#endif // CHARGECARDMANAGEINFO_H
